class NewsService extends SessionService
Service for interacting with the news repository.
- Annotations
- @Slf4j() @Singleton()
- Alphabetic
- By Inheritance
- NewsService
- SessionService
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
- Private
Instance Constructors
- new NewsService(apiClient: NewsApiClient, responseProcessor: NewsResponseProcessor, wordStatsProcessor: NewsWordStatsProcessor, fleschMetricsProcessor: NewsFleschMetricsProcessor, sentimentProcessor: NewsSentimentProcessor, renderer: NewsRenderer, repository: NewsRepository)
- Annotations
- @Inject()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addSearchResult(form: NewsForm, sessionId: Optional[String]): CompletionStage[SearchResult]
Invokes the news API with the provided search form data and returns the search result.
Invokes the news API with the provided search form data and returns the search result.
- form
The search form data
- sessionId
The session ID
- returns
A CompletionStage containing the search result
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getSearchResultWordStats(uuid: UUID, sessionId: Optional[String]): CompletionStage[List[WordFrequency]]
Retrieves the word statistics for a given search result.
Retrieves the word statistics for a given search result.
- uuid
The UUID of the search result
- sessionId
The session ID
- returns
A CompletionStage containing the word statistics
- def getSearchResults(sessionId: Optional[String]): CompletionStage[Html]
Retrieves the search results from the repository to display.
Retrieves the search results from the repository to display.
- sessionId
The session ID
- returns
A CompletionStage containing the search results to be displayed
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def performSessionOperation[T](sessionId: Optional[String], operation: Function[String, CompletionStage[T]]): CompletionStage[T]
Performs an operation that requires a valid session ID.
Performs an operation that requires a valid session ID.
- sessionId
The session ID
- operation
The operation to perform
- returns
A CompletionStage containing the result of the operation
- Attributes
- protected[service]
- Definition Classes
- SessionService
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)